package com.orangelife.mobile.goodsrent.entity;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * Created by Administrator on 2015/12/11.
 */
public class GoodsInfo implements Parcelable{
    /**
     * rGoodID : 6bb092b5-792f-4036-bc13-000930bd2b8d
     * commID : 6bb092b5-792f-4036-bc13-000930bd2b8d
     * goodName : 融侨外滩
     * goodNo : XX123456
     * goodImgs : xxxxxxxxxxx.jpg##xxxxxx.png
     * remark : 物品说明三盛生生世世sss
     * price : 100
     * unit : 天
     * number : 100
     * forType : 1
     * status : 0
     */
    public static final String MAIL = "1";/**邮寄*/
    public static final String RECEIPT  = "2";/**到店提货*/
    public static final String DELIVERED = "3";/**送货上门*/

    private String rGoodID;
    private String commID;
    private String goodName;
    private String goodImgs;
    private String price;
    private String unit;
    private String totalPrice;
    private String unitPrice;
    private String dispatchType;
    private String day;
    private String store;
    private String pdtDesc;
    private String goodsBrief;
    private String goodsLogo;
    private String merID;
    public GoodsInfo(Parcel in) {
        rGoodID = in.readString();
        commID = in.readString();
        goodName = in.readString();
        goodImgs = in.readString();
        price = in.readString();
        unit = in.readString();
        totalPrice = in.readString();
        unitPrice = in.readString();
        dispatchType = in.readString();
        store = in.readString();
        goodsBrief = in.readString();
        goodsLogo = in.readString();
        merID = in.readString();
        pdtDesc = in.readString();
        day = in.readString();
    }

    public static final Creator<GoodsInfo> CREATOR = new Creator<GoodsInfo>() {
        @Override
        public GoodsInfo createFromParcel(Parcel in) {
            return new GoodsInfo(in);
        }

        @Override
        public GoodsInfo[] newArray(int size) {
            return new GoodsInfo[size];
        }
    };

    public GoodsInfo() {
    }

    public String getMerID() {
        return merID;
    }

    public void setMerID(String merID) {
        this.merID = merID;
    }

    public String getGoodsLogo() {
        return goodsLogo;
    }

    public void setGoodsLogo(String goodsLogo) {
        this.goodsLogo = goodsLogo;
    }

    public String getGoodsBrief() {
        return goodsBrief;
    }

    public void setGoodsBrief(String goodsBrief) {
        this.goodsBrief = goodsBrief;
    }

    public String getPdtDesc() {
        return pdtDesc;
    }

    public void setPdtDesc(String pdtDesc) {
        this.pdtDesc = pdtDesc;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getDispatchType() {
        return dispatchType;
    }

    public void setDispatchType(String dispatchType) {
        this.dispatchType = dispatchType;
    }

    public String getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(String unitPrice) {
        this.unitPrice = unitPrice;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(String totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getrGoodID() {
        return rGoodID;
    }

    public void setrGoodID(String rGoodID) {
        this.rGoodID = rGoodID;
    }

    public void setCommID(String commID) {
        this.commID = commID;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public void setGoodImgs(String goodImgs) {
        this.goodImgs = goodImgs;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCommID() {
        return commID;
    }

    public String getGoodName() {
        return goodName;
    }

    public String getGoodImgs() {
        return goodImgs;
    }

    public String getPrice() {
        return price;
    }

    public String getUnit() {
        return unit;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(rGoodID);
        dest.writeString(commID);
        dest.writeString(goodName);
        dest.writeString(goodImgs);
        dest.writeString(price);
        dest.writeString(unit);
        dest.writeString(totalPrice);
        dest.writeString(unitPrice);
        dest.writeString(dispatchType);
        dest.writeString(store);
        dest.writeString(goodsBrief);
        dest.writeString(goodsLogo);
        dest.writeString(merID);
        dest.writeString(pdtDesc);
        dest.writeString(day);
    }
}
